﻿//Page load
$(document).ready(function () {
    //Covert all buttons to jQueryUI button
    $('input[type=submit], input[type=button]').button();

    //Events hookup
    $('#btnConnection').click(btnConnection_OnClick);
});

//Grid row click/select
var selectedRecordId = null;
function grdResult_OnRowSelected(s, e) {
    selectedRecordId = e.getDataKeyValue('UserID');
}

//Connect click
function btnConnection_OnClick(e) {
    alert(selectedRecordId);
}